package adapt;

public class Sound {

    public void charge(Charge charge){
        int src = charge.change440To10();
        if (src == 10){
            System.out.println("适配器输出电压为10V，充电成功");
        }else{
            System.out.println("适配器输出电压为"+src+"V，充电失败");
        }
    }

}
